package com.hxzy.research.mapper;

import com.hxzy.research.pojo.TblBranch;

import java.util.List;

public interface TblBranchMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TblBranch record);

    int insertSelective(TblBranch record);

    TblBranch selectByPrimaryKey(Integer id);
    //查找全部分公司
    public List<TblBranch> selectAllBranch() throws Exception;

    int updateByPrimaryKeySelective(TblBranch record);

    int updateByPrimaryKey(TblBranch record);
    //添加分公司到branch表
    public void addBranch(TblBranch tblBranch)throws Exception;
    //通过名字查询到新添加的分公司的id
    public TblBranch findBranchidByName(String name)throws Exception;

    //执行修改-再修改branch表
    public void updateBranch(TblBranch tblBranch) throws Exception;

    //执行删除-再删除branch表-用user表的branchid来删除
    public void deleteBranch(Integer branchId)throws Exception;
}